package com.example.ceshi.controller;

import com.example.ceshi.entity.Website;
import com.example.ceshi.mapper.WebsiteMapper;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class img {

    @Resource
    private WebsiteMapper websiteMapper;

    @RequestMapping("imglist")
    public Website imglist() {
        Website website = new Website();
        List<Website> websites = websiteMapper.selectAllOrderByIdDesc();
        System.out.println(websites);
        return website;
    }

    @RequestMapping("shangchuan")
    public void shangchuan(Website website) {
        System.out.println(website);
    }


}
